

-- global variables
dicts = {} -- all good strings readed from MemoDB
titles = {} -- titles of tests, readed at MemoDB

chosedDict = -1 -- home screem, user will select

usedWords={} -- used at tests
question = 0 -- question to user answer it

ind = -1
userText = 0 -- the field that is a user answer id of component
RandonWord = "" -- word for this question
correctAnswer = "" -- correct answer for this question



-- read the relacted memo files to vocabulary

f,n = io.open("db:/MemoDB", "r")

-- here is all data of all memo vocabulary registers
-- read all memos in palm
for i = 0,n-1,1 do
	f:openrec(i)
	s = f:read("*a") -- read al document

	-- if the first 5 characters of register is related to sd-vt
	if(string.sub(s,0,5) == "sd#vt") then
		ind = ind + 1		
		dicts[ind] = s
	end
end

-- ok, now dicts are the data of all dicts...

-- call the first UI screen
vtgui:ChoseTest()
gui.main()
